package com.lemon.reggie.utils;

public class BaseContextUtil {

    private static final ThreadLocal<Long> THREAD_LOCAL_USERID = new ThreadLocal<>();

    public static void setCurrentId(Long id) {
        THREAD_LOCAL_USERID.set(id);
    }

    public static Long getCurrentId() {
       return THREAD_LOCAL_USERID.get();
    }
}
